﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;

namespace XCommunity.Members
{
  public abstract class AccountService
  {
    protected static readonly System.Text.RegularExpressions.Regex NameRegex = new System.Text.RegularExpressions.Regex( "^[_a-zA-Z]{1}[_a-zA-Z0-9]{4,20}$", System.Text.RegularExpressions.RegexOptions.Compiled );

    public abstract IEnumerable<string> LoggedAccounts
    {
      get;
    }

    public abstract DateTime GetLastActivityTime( string username );
  }
}
